package com.yazi.mxz.common.service;

import java.util.List;

import com.myframework.smhj.common.exception.MyException;
import com.myframework.smhj.hibernate.dao.Service;
import com.yazi.mxz.common.entity.beans.Member;
import com.yazi.mxz.common.entity.beans.ShoppingCart;
import com.yazi.mxz.common.entity.custom.ShoppingCart4Order;

public interface ShoppingCartService extends Service<ShoppingCart> {
	
	/**
	 * 查检要下订的购物车商品是否符合下单条件
	 * @param member 用户(游离对象)
	 * @param cartList 要下单的购物车及物品(表单对象)
	 * @return 返回符合下单条件的购物车及物品
	 */
	List<ShoppingCart> checkForOrderByMember(Member member, 
			List<ShoppingCart4Order> cartList) throws MyException;
	
}
